public class Action {
	private int _id;
	private String _name;
	private String _code;

	public Action(int id, String name, String code) {
		set_id(id);
		set_name(name);
		set_code(code);
	}

	public void set_id(int _id) {
		this._id = _id;
	}

	public int get_id() {
		return _id;
	}

	public void set_name(String _name) {
		this._name = _name;
	}

	public String get_name() {
		return _name;
	}

	public void set_code(String _code) {
		this._code = _code;
	}

	public String get_code() {
		return _code;
	}

	public String actionToSmall() {
		String code = "\n// " + get_name() + "\n";
		code += get_code();
		code += "\n";
		return code;
	}
}
